#ifndef FKCOMMONINSTANCE_H
#define FKCOMMONINSTANCE_H

#include "FKDataModel.h"

class FKCommonInstance : public FKDataModel{
public:
    static FKCommonInstance* loadFromFile(const QString& path,QObject* parent=0);
    ~FKCommonInstance();
    bool saveToFile(const QString& path)const;
    FKDataRecord* getCommonRecord(const qint32& key)const;
private:
    FKCommonInstance(QObject* parent);
    QHash<qint32,FKDataRecord*> _records;
};

#endif // FKCOMMONINSTANCE_H
